#include<stdio.h>
 /* int main() {
  int i = 0;
 for (i = 1; i < 10; i++)
  {
		int j = 0;
		for (j = 1; j <= i; j++)
		{
			printf("%d*%d=%2d ", i, j, i * j);
		}
		printf("\n");
	}
	return 0;
}*/
int mul(int x)
{
	int i = 0,sum=0;
	for (i = 1; i <=x;i++)
	{
		int j = 0;
		for (j = 1; j <= i; j++)
		{
			int sum = i * j;
			printf("%d*%d=%2d ", i, j, sum);
		}
		printf("\n");
	}
	return sum;
}
int main() {
	int n = 0;
	scanf_s("%d", &n);
	mul(n);
	return 0;
}